import TemplateMethodCode.AbstractAccount;
import TemplateMethodCode.ConcreteAccount.*;

public class Main {
    public static void main(String[] args) {

        AbstractAccount currentAccount = new CurrentAccount(10000,10);
        System.out.println("活期账户:");
        currentAccount.calculateInterest();

        AbstractAccount savingAccount = new SavingAccount(10000,10);
        System.out.println("\n定期账户:");
        savingAccount.calculateInterest();
    }
}
